package com.mifengs.mall.netWork.api;

import com.mifengs.mall.Constant;
import com.mifengs.mall.entity.ResponseBean;
import com.mifengs.mall.entity.ResponseInfo;
import com.mifengs.mall.entity.TokenBean;
import com.mifengs.mall.entity.UpdateData;

import java.util.Map;

import okhttp3.ResponseBody;
import retrofit2.http.FieldMap;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.Headers;
import retrofit2.http.POST;
import retrofit2.http.Query;
import rx.Observable;

/**
 * Created by Administrator on 2017/10/24.
 */

public interface RegisterApi {

    /**
     *
     * @param
     * @return 验证手机是否已经存在
     */

    @POST(Constant.PHONE_IS_EXIST)
    @FormUrlEncoded
    Observable<ResponseBody> getIsPhone(
            @FieldMap Map<String, Object> map);

    @Headers("InterVersion:V_01_01")
    @FormUrlEncoded
    @POST(Constant.USERREG)
    Observable<ResponseBody> register(
            @FieldMap Map<String, String> map
    );

    /**
     * @param
     * @return 发送验证码
     */
    @FormUrlEncoded
    @POST(Constant.SEND_SMSCODE)
    Observable<ResponseBody> sendSMSCode( @FieldMap Map<String, String> map  );


}
